#!/bin/bash
file="Makefile"
if [ -f "$file" ]; then
make clean
fi
/opt/local/qths/bin/qmake && make

git_ver=$(git rev-list HEAD -n 1 | cut -c 1-)
echo ${git_ver:0-7} > VERSION
